package com.dxx.cloud.admin.module.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

@Schema(description = "根据条形码查询商品请求体")
@Data
public class GoodsBarCodeRequest {

    @Schema(description="商户id",example="1")
    @NotNull
    private Long merId;

    @Schema(description="门店id",example="1")
    @NotNull
    private Long shopId;

    @Schema(description = "条形码", example = "1")
    @NotEmpty
    private String barCode;

    public GoodsBarCodeRequest() {
    }

    public GoodsBarCodeRequest(Long merId, Long shopId, String barCode) {
        this.merId = merId;
        this.shopId = shopId;
        this.barCode = barCode;
    }


}